package com.example.yiqinmanagersystem.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.yiqinmanagersystem.entity.NocvNews;
import com.example.yiqinmanagersystem.mapper.NocvNewsMapper;
import com.example.yiqinmanagersystem.service.NocvNewsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/*
 **@Author:youpeng
 **Created on 2022/9/18
 */
@Service
public class NocvNewsServiceImpl extends ServiceImpl<NocvNewsMapper,NocvNews> implements NocvNewsService {

    @Resource
    private NocvNewsMapper nocvNewsMapper;

    @Override
    public List<NocvNews> listNewsLimit5() {
        return nocvNewsMapper.listNewsLimit5();
    }
}
